public class Lv1Demo {
    public static void main(String[] args) {
        MyString myString = new MyString();
        String[] strings = {"acbdw", "1269547", "AASIDX", "AIUydjs", "12sjaA", "3819247", "ausSHSzio", "IUFISsi"};
        int[] i;
        char[] j;
        for (String s : strings) {
            System.out.print("String:" + s + "\n");
            System.out.print("isNumber: " + myString.isNumber(s) + "\n");
            System.out.print("isAllUpper: " + myString.isAllUpper(s) + "\n");
            System.out.print("isAllLower: " + myString.isAllLower(s) + "\n");
            if (myString.isLetters(s)) {
                System.out.print("toUpper: " + myString.toUpper(s) + "\n");
                j = myString.sortLetter(s);
                System.out.print("sortLetter: ");
                for (char a : j) {
                    System.out.print(a + " ");
                }
                System.out.print("\n");
            }
            if (myString.isNumber(s)) {
                i = myString.sortNumber(s);
                System.out.print("sortNumber: ");
                for (int a : i) {
                    System.out.print(a + " ");
                }
                System.out.print("\n");
            }
            System.out.print("\n\n");
        }
    }
}
